package com.example.boot.test;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @author ruiwu
 * @version V1.0
 * @Description: * 入口，映射模板页面
 *                  viewController 为ws.html提供路径映射
 */

@Controller
public class WebMvcConfig extends WebMvcConfigurerAdapter {
    @RequestMapping("/")
    public String index(){
        return"/index";
    }
    @RequestMapping("/ws")
    public String ws(){
        return"/ws";
    }
}
